<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
    <title>欢迎页面-X-admin2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="css/font.css">
    <link rel="stylesheet" href="css/xadmin.css">
    <link rel="stylesheet" type="text/css" href="lib/layui/css/layui.css"/>
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/xadmin.js"></script>
    <script type="text/javascript" src="js/jquery-1.12.4.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>

<table  class="layui-table"  lay-even lay-skin="row" lay-size="lg">
							<tr ><td colspan="4" width="900px"><h1 align="center" >案件资料收集</h1></td></tr>
							<tr>
							<td hidden="hidden" class="reportno">${reportno}</td>
								<td> <input class="reparationMediation"  type="checkbox" name="" value="" />交通事故损害赔偿调解书 </td>
								<td> <input class="insurerCertificate"  type="checkbox" name="" value="" />营业执照或身份证复印件 </td>
								<td> <input class="additionalPrices"  type="checkbox" name="" value="" />车辆购置附加费原件 </td>
								<td> <input class="insurancePolicyId"  type="checkbox" name="" value="" />保单原件 </td>
							</tr>
							<tr>
								<td> <input class="touqiekanpoCertificate"  type="checkbox" name="" value="" />盗抢车辆为侦破证明 </td>
								<td> <input  class="driverLicense" type="checkbox" name="" value="" />驾驶证 </td>
								<td> <input  class="illnessCertificate" type="checkbox" name="" value="" />病历证明 </td>
								<td> <input class="carCertificate"  type="checkbox" name="" value="" />机动车登记证书原件 </td>
							</tr>
							<tr>
								<td> <input class="fireCertificate"  type="checkbox" name="" value="" />火灾证明 </td>
								<td> <input class="claim"  type="checkbox" name="" value="" />索赔申请书 </td>
								<td> <input class="thirdCompensation"  type="checkbox" name="" value="" />三者的赔偿收据 </td>
								<td> <input class="salvagePrices"  type="checkbox" name="" value="" />施救费用收据 </td>
							</tr>
							<tr>
								<td> <input  class="touqiefdCertificate" type="checkbox" name="" value="" />盗抢车辆封档证明 </td>
								<td> <input  class="medicalPrices" type="checkbox" name="" value="" />医疗费用单 </td>
								<td> <input  class="dieCertificate" type="checkbox" name="" value="" />死亡证明 </td>
								<td> <input class="autobytelInvoice" type="checkbox" name="" value="" />购车发票 </td>
							</tr>
							<tr>
								<td> <input  class="yanglufei" type="checkbox" name="" value="" />养路费停缴证明 </td>
								<td> <input  class="cunchechang" type="checkbox" name="" value="" />存车场发票 </td>
								<td> <input class="driverVip"  type="checkbox" name="" value="" />驾驶员会员证复印件 </td>
								<td> <input  class="rainstormCertificate" type="checkbox" name="" value="" />暴雨暴风证明 </td>
							</tr>
							<tr>
								<td> <input  class="accidentCertificate" type="checkbox" name="" value="" />事故证明 </td>
								<td> <input  class="lossList" type="checkbox" name="" value="" />损失清单 </td>
								<td> <input class="travelLicenseA"  type="checkbox" name="" value="" />行驶证原件 </td>
								<td> <input  class="paymentRecript" type="checkbox" name="" value="" />赔款收据 </td>
							</tr>
							<tr>
								<td> <input class="disabilityCertificate"  type="checkbox" name="" value="" />交通事故评残证明 </td>
								<td> <input class="wugongCertificate"  type="checkbox" name="" value="" />误工证明 </td>
								<td> <input class="carKey"  type="checkbox" name="" value="" />垫付申请 </td>
								<td> <input  class="lossVehiclesCertificate" type="checkbox" name="" value="" />车辆丢失登报证明 </td>
							</tr>
							<tr>
								<td> <input class="assignment"  type="checkbox" name="" value="" />权益转让书 </td>
								<td> <input class="travelLicenseB"  type="checkbox" name="" value="" />行驶证复件 </td>
								<td> <input class="repairInvoice" type="checkbox" name="" value="" />修车发票 </td>
								<td> <input class="maintenanceCertificate" type="checkbox" name="" value="" />抚养证明 </td>
							</tr>
							<tr><td colspan="4" align="center"><span id="affirm" class="layui-btn layui-btn-normal layui-btn-mini" >确认</span></td></tr>
						</table>
<script type="text/javascript">
$(function(){
	

$("#affirm").click(function(){
	//资料收集
	//交通事故损害赔偿调解书
	var reparationMediation=0;
	
	//营业执照或身份证复印件
	var insurerCertificate=0;
	
	//车辆购置附加费原件
	var additionalPrices=0;
	
	//保单原件
	var insurancePolicyId=1;
	//默认勾选并只读
	$(".insurancePolicyId").attr("checked",'checked');
	$(".insurancePolicyId").attr('disabled',true)
	//盗抢车辆为侦破证明
	var touqiekanpoCertificate=0;
	
	//驾驶证
	var driverLicense=0;
	
	//病历证明
	var illnessCertificate=0;
	
	//机动车登记证书原件
	var carCertificate=0;
	
	//火灾证明
	var fireCertificate=0;
	
	//索赔申请书
	var claim=0;
	
	//三者的赔偿收据
	var thirdCompensation=0;
	
	//施救费用收据
	var salvagePrices=0;
	
	//盗抢车辆封档证明
	var touqiefdCertificate=0;
	
	//医疗费用单
	var medicalPrices=0;
	
	//死亡证明
	var dieCertificate=0;
	
	//购车发票
	var autobytelInvoice=0;
	
	//养路费停缴证明
	var yanglufei=0;
	
	//存车场发票
	var cunchechang=0;
	
	//驾驶员会员证复印件
	var driverVip=0;
	
	//暴雨暴风证明
	var rainstormCertificate=0;
	
	//事故证明
	var accidentCertificate=0;
	
	//损失清单
	var lossList=0;
	
	//行驶证原件
	var travelLicenseA=0;
	
	//赔款收据
	var paymentRecript=0;
	
	//交通事故评残证明
	var disabilityCertificate=0;
	
	//误工证明
	var wugongCertificate=0;
	
	//垫付申请
	var carKey=0;
	
	//车辆丢失登报证明
	var lossVehiclesCertificate=0;
	
	//权益转让书
	var assignment=0;
	
	//行驶证复件
	var travelLicenseB=0;
	
	//修车发票
	var repairInvoice=0;
	
	//抚养证明
	var maintenanceCertificate=0;

	
	if ($(".reparationMediation[type='checkbox']").is(':checked')) {
		reparationMediation=1;
	}
	if ($(".insurerCertificate[type='checkbox']").is(':checked')) {
		insurerCertificate=1;
	}
	if ($(".additionalPrices[type='checkbox']").is(':checked')) {
		additionalPrices=1;
	}
	
	if ($(".touqiekanpoCertificate[type='checkbox']").is(':checked')) {
		touqiekanpoCertificate=1;
	}
	if ($(".driverLicense[type='checkbox']").is(':checked')) {
		driverLicense=1;
	}
	if ($(".illnessCertificate[type='checkbox']").is(':checked')) {
		illnessCertificate=1;
	}
	if ($(".carCertificate[type='checkbox']").is(':checked')) {
		carCertificate=1;
	}
	if ($(".fireCertificate[type='checkbox']").is(':checked')) {
		fireCertificate=1;
	}
	if ($(".claim[type='checkbox']").is(':checked')) {
		claim=1;
	}
	if ($(".thirdCompensation[type='checkbox']").is(':checked')) {
		thirdCompensation=1;
	}
	if ($(".salvagePrices[type='checkbox']").is(':checked')) {
		salvagePrices=1;
	}
	if ($(".touqiefdCertificate[type='checkbox']").is(':checked')) {
		touqiefdCertificate=1;
	}
	if ($(".medicalPrices[type='checkbox']").is(':checked')) {
		medicalPrices=1;
	}
	if ($(".dieCertificate[type='checkbox']").is(':checked')) {
		dieCertificate=1;
	}
	if ($(".autobytelInvoice[type='checkbox']").is(':checked')) {
		autobytelInvoice=1;
	}
	if ($(".yanglufei[type='checkbox']").is(':checked')) {
		yanglufei=1;
	}
	if ($(".cunchechang[type='checkbox']").is(':checked')) {
		cunchechang=1;
	}
	if ($(".driverVip[type='checkbox']").is(':checked')) {
		driverVip=1;
	}
	if ($(".rainstormCertificate[type='checkbox']").is(':checked')) {
		rainstormCertificate=1;
	}
	if ($(".accidentCertificate[type='checkbox']").is(':checked')) {
		accidentCertificate=1;
	}
	if ($(".lossList[type='checkbox']").is(':checked')) {
		lossList=1;
	}
	if ($(".travelLicenseA[type='checkbox']").is(':checked')) {
		travelLicenseA=1;
	}
	if ($(".paymentRecript[type='checkbox']").is(':checked')) {
		paymentRecript=1;
	}
	if ($(".disabilityCertificate[type='checkbox']").is(':checked')) {
		disabilityCertificate=1;
	}
	if ($(".wugongCertificate[type='checkbox']").is(':checked')) {
		wugongCertificate=1;
	}
	if ($(".carKey[type='checkbox']").is(':checked')) {
		carKey=1;
	}
	if ($(".lossVehiclesCertificate[type='checkbox']").is(':checked')) {
		lossVehiclesCertificate=1;
	}
	if ($(".assignment[type='checkbox']").is(':checked')) {
		assignment=1;
	}
	if ($(".travelLicenseB[type='checkbox']").is(':checked')) {
		travelLicenseB=1;
	}
	if ($(".repairInvoice[type='checkbox']").is(':checked')) {
		repairInvoice=1;
	}
	if ($(".maintenanceCertificate[type='checkbox']").is(':checked')) {
		maintenanceCertificate=1;
	}
	//操作id
	var userid= ${loginUser.pkUser};
	//时间
	var time=new Date();
	//报案号
	var reportNo=$(".reportno").html();
	$.getJSON(
	"dataAcquisitionInsert.do",
	{"userid":userid,"insurancePolicyId":insurancePolicyId,"reparationMediation":reparationMediation,"repairInvoice":repairInvoice,
		"driverLicense":driverLicense,"illnessCertificate":illnessCertificate,"maintenanceCertificate":maintenanceCertificate,
		"additionalPrices":additionalPrices,"touqiekanpoCertificate":touqiekanpoCertificate,"carCertificate":carCertificate,
		"touqiefdCertificate":touqiefdCertificate,"fireCertificate":fireCertificate,"claim":claim,"thirdCompensation":thirdCompensation,
		"salvagePrices":salvagePrices,"driverVip":driverVip,"medicalPrices":medicalPrices,"dieCertificate":dieCertificate,"autobytelInvoice":autobytelInvoice,
		"yanglufei":yanglufei,"cunchechang":cunchechang,"insurerCertificate":insurerCertificate,"rainstormCertificate":rainstormCertificate,
		"accidentCertificate":accidentCertificate,"lossList":lossList,"travelLicenseA":travelLicenseA,"paymentRecript":paymentRecript,
		"disabilityCertificate":disabilityCertificate,"wugongCertificate":wugongCertificate,"carKey":carKey,"lossVehiclesCertificate":lossVehiclesCertificate,
		"assignment":assignment,"travelLicenseB":travelLicenseB,"reportNo":reportNo,"time":time},
		function(data){
	    	if (data==1) {
	    		alert("已确认")
	    		x_admin_close()
	    	} 
	    	}
	)

	
})

})
</script>


</body>
</html>